import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import '@/styles/globals.css'
import Providers from "@/components/layout/Providers";
import Header from "@/components/layout/Header";
import Footer from "@/components/layout/Footer";

const inter = Inter({ subsets: ['latin'] })

export const metadata: Metadata = {
  title: 'NextJS-antd-tailwind-example',
  description: '一个NextJS + AntDesign + TailwindCSS 模板脚手架',
}

export default function RootLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
      <html lang="zh-CN">
      <body className={inter.className}>
      <Providers>
        <Header/>
          <main className={"min-h-[calc(100vh_-_128px)]"}>
            <div className={"transition-all"}>
              {children}
            </div>
          </main>
        <Footer />
      </Providers>
      </body>
      </html>
  )
}
